FROM hub.fabigbig.com/base/nodejs:18-16-0

WORKDIR /app
COPY . /app/

RUN mkdir -p /var/www/html/fdd-contract
RUN mkdir -p /var/www/html/fdd-contract/demo

RUN cp -r docs/.vuepress/dist/* /var/www/html/fdd-contract 

ADD nginx.conf /etc/nginx/nginx.conf

ENV PORT 80

CMD ["nginx","-g","daemon off;"]
